/**
 * Created by hama on 2016/6/13.
 */



var express = require('express');

var routes = require('./routes/index');

var template = require('./template');

var app = express();

app.use(express.static('www'));

routes(app);
template(app);

//启动
app.listen(4000,function(){
    console.log('node is OK');
})